package com.tz.service;

import com.tz.dao.UserDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * Created by Administrator on 2016/7/21.
 */
@Component
public class UserServiceMockImpl implements UserService {

    @Autowired
    private UserDao userDao;

    @Override
    public boolean check(String email,String password) {
        if("123456@qq.com".equals(email) && "123456".equals(password)) {
            return true;
        }else{
            return false;
        }
    }

    @Override
    public void test() {
        System.out.println("userService.test() run....");
    }
}
